package com.xb.service;


import com.xb.entity.GetCardIdInfoReqVO;
import com.xb.entity.Patient;
import com.xb.util.Result;

import javax.servlet.http.HttpSession;

/**
 * Service接口
 */
public interface IPatientService {


    public Patient selectPatientByIdCard(String idCard);

    public Result selectPatientByPatient(GetCardIdInfoReqVO getCardIdInfoReqVO, HttpSession session);

    public Result medicalRecordGetCardIdInfo(GetCardIdInfoReqVO getCardIdInfoReqVO, HttpSession session);

    public Patient selectPatientByRegisterId(int registerId);

    public Patient checkPatient(int cardId);

    public Result getExaminationToll(int cardId);

    /**
     * 分页查询列表
     *
     * @param patient
     * @return 集合
     */
    public Result selectPatientList(Patient patient, Integer page, Integer limit);

    /**
     * 新增
     *
     * @param patient
     * @return 结果
     */
    public boolean insertPatient(Patient patient);

    public boolean reissuePatient(Patient patient);

    /**
     * 修改
     *
     * @param patient
     * @return 结果
     */
    public boolean updatePatientByCardId(Patient patient);

    public Result update(Patient obj);

    public Result add(Patient obj);

}
